package com.project.m.api.busi.db.repo.hicatcard;

import com.project.m.api.busi.db.entity.hicatcard.TSmsCode;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface SmsCodeRepo extends JpaRepository<TSmsCode, Long>, JpaSpecificationExecutor<TSmsCode> {

	List<TSmsCode> findByTypeAndPhone(String type, String phone);

	List<TSmsCode> findByTypeAndPhoneAndEnable(String type, String phone, Boolean enable);


}
